import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { DefineComponent } from 'vue'
import SvgIcon from '@/components/SvgIcon.vue'// 导入 svg 组件
const requireAll = (requireContext: __WebpackModuleApi.RequireContext) => requireContext.keys().map(requireContext)
const req = require.context('@/assets/icon', false, /\.svg$/)
requireAll(req)

import '@varlet/ui/es/popup/style/index.js';
import { DatetimePicker, Popup } from 'vant';

let app = createApp(App)
app.component('svg-icon', SvgIcon)
app.use(router).mount('#app')

app.use(DatetimePicker);
app.use(Popup)


